const app = getApp();
Page({
	data: {
		StatusBar: app.globalData.StatusBar,
		CustomBar: app.globalData.CustomBar,
	},
	onGetUserInfo: function (e) {
		if (!this.logged && e.detail.userInfo) {
			app.globalData.userInfo = e.detail.userInfo;
			wx.switchTab({
				url: '/pages/home/showfirst/showfirst',
			});
		}
	}
});